home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 4 / Apprentice-Release4.iso / Languages / Mops 2.7 / Mops Manual / Part I.srd / Part I.srd.rsrc / PICT_46.png < prev    next >
Portable Network Graphic  |  1996-01-02  |  144KB  |  816x1056  |  8-bit (256 colors)
Labels: book | door | earth | reckoner | sky | tree | windowpane
OCR: I-4 Mops Tutorial line. (Remember, if you're typing the definition from the Mops prompt, you uop need to type the stack definition. We just include here for completeness.): add nl n2 The ope rat .on expects .nd two numbers on the stack. There fore, to us woulc type two numbers (which o6 onto the stack) and then the new word: add poob exercise at this point would be to define new words to simplify the opera itions The return stack As we have seen a Mops program bas ically consists of sequence of words and messages sent to objects (which cause method to be 'executed). The definitions of these words and methods can contain many other words anc messages If you think about what must happen when Mops is executing one definition or method you can see that when it has to go and execute other words ...